import service from '@/utils/service';
class Home {
    reqSearch() {
        return service.GET(`https://m.you.163.com/xhr/search/init.json`);
    }
    reqKeyWord(data: any) {
        return service.POST(`https://m.you.163.com/xhr/search/searchAutoComplete.json`, data, {
            'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
        });
    }
    reqGood(keyWord: any) {
        return service.GET(
            `https://m.you.163.com/xhr/search/search.json?__timestamp=${new Date().getTime()}&needPopWindow=true&searchWordSource=7&stillSearch=false&_stat_search=autoComplete&itemId=0&size=40&upperPrice=-1&floorPrice=-1&matchType=0&categoryId=0&descSorted=false&sortType=0&keyword=${keyWord}`,
        );
    }
}
export default new Home();
